@extends('admin.common.admin')
@section('cnt')
    {{--面包屑导航--}}
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i>房源管理
        <span class="c-gray en">&gt;</span> 添加出租信息
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新">
            <i class="Hui-iconfont">&#xe68f;</i>
        </a>
    </nav>
    <article class="page-container">
        {{--消息提示--}}
        @include('admin.common.msg')
        <form class="form form-horizontal" id="addform" method="post" action="{{ route('admin.fang.rent',$fang) }}">
            @csrf
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>租客：</label>
                <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box" style="width: 200px">
				<select id="rent_id" name="rent_id" class="select">
                    @foreach($data as $item)
                        <option value="{{ $item->id }}">{{ $item->truename }}</option>
                    @endforeach
				</select>
				</span>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2"><span class="c-red">*</span>开始日期：</label>
                <div class="formControls col-sm-10">
                    <input type="text" autocomplete="off" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'})" name="sdt"
                           class="input-text Wdate" style="width:200px;">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2"><span class="c-red">*</span>结束日期：</label>
                <div class="formControls col-sm-10">
                    <input type="text" autocomplete="off" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'})" name="edt"
                           class="input-text Wdate" style="width:200px;">
                </div>
            </div>
            <div class="row cl">
                <div class="col-sm-10 col-sm-offset-2">
                    <input class="btn btn-primary radius" type="submit" value="添加房源属性">
                </div>
            </div>
        </form>
    </article>
@endsection